﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace FreedBack.Models
{
    public class RatingValueModel
    {
        [Key]
        public int RatingValueId { get; set; }

        [Required(ErrorMessage="Rating Value Name must be supplied.")]
        [MaxLength(20, ErrorMessage = "Rating Value Name must not be more than 20 characters in length.")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Value must be supplied.")]
        [Range(1,5, ErrorMessage="Value must be between 1 and 5")]
        [Display(Name = "Value (1-5)")]
        public int? Value { get; set; }
    }
}